<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>js使用YUI库</title>
<script src="http://yui.yahooapis.com/3.18.1/build/yui/yui-min.js"></script>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.18.1/build/cssfonts/cssfonts-min.css">
</head>
<body>
	<div class="yui3-skin-sam yui3-g">
		<script type="text/javascript">
			YUI().use('calendar',function (Y) {
				var calendar = new Y.Calendar({
					contentBox:"#my_calendar",
					height:'200px',
					width:'600px',
					showPrevMonth:true,
					showNextMonth:true,
					date:new Date(1981,11,11)}).render();
			});
		</script>
	</div>
</body>
</html>